<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>优惠券使用报表</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
<script language="javascript" src="/img/jquery.js"></script>
<script language="javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script>
function search_data()
{
	$('#op').val('search_data');
}
function export_data()
{
	$('#op').val('export_data');
}
function checkdata()
{
	if($('#start_date').val() == '')
	{
		alert('请输入开始时间');
		return false;
	}
	if($('#end_date').val() == '')
	{
		alert('请输入结束时间');
		return false;
	}
	return true;
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td align='center' valign='top'>
        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
            	<tr>
                	<td height="28" background="../img/tbg.gif">
                    	<div style="float:right;padding-right:6px;">
                            <a href='coupon.php' class='np coolbg'>返回</a>
                        </div>
                    </td>
                </tr>
            </table>
			
            
            
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
				<tr>
    				<td height="26" background="../img/tbg.gif">
                    <form action="" method="post" onSubmit="return checkdata()">
    					<table width="98%" border="0" cellspacing="2" cellpadding="0">
     						<tr>
                            	<td width="10%">选择日期：</td>
                                <td width="90%">
                                <input id="start_date" type="text" onClick="WdatePicker()" value="<{$start_date}>" name="start_date">
                                -
                                <input id="end_date" type="text" onClick="WdatePicker({minDate:'#F{$dp.$D(\'start_date\')}'})" value="<{$end_date}>" name="end_date">
                                </td>
     						</tr>

                            <tr>
                            	<td colspan="4" align="center">
                                	<input type="hidden" id="op" name="op" value="" />
                                	<input type='submit' class="coolbg np" value='搜索' onClick="search_data()" />&nbsp;&nbsp;
                                    <input type='submit' class="coolbg np" value='导出' onClick="export_data()" />
                                </td>
                            </tr>
    					</table>
                    </form>
    				</td>
    			</tr>
 			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
            

			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="7" background="../img/tbg.gif">§优惠券报表 &gt; 优惠码列表 &nbsp;</td>
				</tr>
                
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td>优惠码</td>
                    <td>类型</td>
                    <td>总数</td>
                    <td>打印价格</td>
                    <td>订单号</td>
                    <td>是否使用</td>
                    <td>使用日期</td>
                </tr>
                <{foreach from=$coupon_info_list item=coupon}>
                <tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td><{$coupon.serial_number}></td>
                    <td><{$coupon.type_name}></td>
                    <td><{$coupon.used_value}><{$coupon.unit}></td>
                    <td><{$coupon.print_value}>元</td>
                    <td><{$coupon.order_no}></td>
                    <td><{if $coupon.is_used == 1}>已使用<{else}>未使用<{/if}></td>
                    <td><{$coupon.add_date}></td>
                </tr>
                <{/foreach}>
                <tr bgcolor="#FAFAF1">
                	<td height="24" colspan="12"><{$page_str}></td>
                </tr>
				
                <!--<tr align="right" bgcolor="#EEF4EA">
                	<td height="20" colspan="9" align="center"></td>
                </tr>-->
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                	<td height="4"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                	<td height="26"></td>
                </tr>
				<tr>
					<td colspan="2" height="4"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>